package com.dragon.graduation.midtermDefense.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dragon.graduation.midtermDefense.controller.dto.MidtermDefenseSearchDTO;
import com.dragon.graduation.midtermDefense.controller.vo.MidtermDefenseVO;
import com.dragon.graduation.midtermDefense.entity.MidtermDefenseEntity;
import com.dragon.graduation.midtermDefense.mapper.MidtermDefenseMapper;
import com.dragon.graduation.midtermDefense.service.MidtermDefenseService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 中期答辩表 服务实现类
 * </p>
 *
 * @author dragon
 * @since 2025-02-28 21:19:15
 */
@Service
public class MidtermDefenseServiceImpl extends ServiceImpl<MidtermDefenseMapper, MidtermDefenseEntity> implements MidtermDefenseService {

    @Override
    public Page<MidtermDefenseVO> findPages(Page<MidtermDefenseEntity> entityPage, MidtermDefenseSearchDTO searchDTO) {
        return baseMapper.selectPages(entityPage,searchDTO);
    }

    @Override
    public MidtermDefenseEntity findByProjectIdAndStudentId(Integer projectId,Integer studentId) {
        return baseMapper.selectByProjectIdAndStudentId(projectId,studentId);
    }
}
